package com.onekbase.demo.spring;

import com.onekbase.demo.spring.service.DemoService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringXmlMain {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-ioc.xml");
        DemoService s = context.getBean("demoService", DemoService.class);
        s.hello();
    }
}
